{% load static %}
<link rel="stylesheet" href="{% static 'adminpage.css' %}">

<head>
  <title>MMS Test</title>
    <link rel="icon" type="image/x-icon" href="/static/11.png">
</head>


<h1><a href="http://127.0.0.1:8000/members/" style="color: white;">MMS(Mail-Management-System)</a></h1>
<br></br>

    
    


<br></br>
<br></br>
<h2 style="color: white; margin-bottom:2ch; text-align: center;">草稿箱</h2>
<div class="tb" id="block1">
    <table class="rwd-table">
    <tr>
        <th>草稿ID</th>
        <th>草稿标题</th>
        <th>草稿正文</th>
        <th>收件人ID</th>
        <th>最后编辑时间</th>
        <th>附件ID</th>
        <th>附件名称</th>
        <th>附件url地址</th>
    </tr>
    
{% for x in draft %}
<tr>
<td>{{ x.draft_id }}</td>
<td>{{ x.draft_theme }}</td>
<td>{{ x.draft_content }}</td>
<td>{{ x.receiver_id }}</td>
<td>{{ x.last_edit_time }}</td>
<td>{{ x.appendix_id }}</td>    
<td>{{ x.appendix_name }}</td>        
<td><a href="https://{{ x.appendix_url }}">{{ x.appendix_url }}</a></td>

<td><a href="send_draft/{{x.draft_id}}">send_draft</a></td>
<td><a href="delete_draft/{{x.draft_id}}">delete_draft</a></td>
</tr>
{% endfor %}

        
        
</table>

</div>


